﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="CompanyDetail.aspx.cs" Inherits="Accountant_CompanyDetail" %>

<%@ Register src="topnav.ascx" tagname="topnav" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script>
        function GoToCreate(id, orderid) {
            window.location.href = "EnterCompanyDetail.aspx?CompanyID=" + id + "&orderid=" + orderid;
        }
        function GoToProfitTax(id, orderid) {
            window.location.href = "ProfitTax.aspx?CompanyID=" + id + "&orderid=" + orderid;
        } 
        function GoTo(page, id, orderid) {
            window.location.href = page + "?CompanyID=" + id + "&orderid=" + orderid;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<uc1:topnav ID="topnav1" runat="server" />
    <h2>
        明细</h2>
    
   <%-- <input type="button" value="新增" onclick='GoToCreate("<% =Request.QueryString["CompanyID"]%>","<% =Request.QueryString["orderid"]%>");' />
    <input type="button" value="利得税" onclick='GoToProfitTax("<% =Request.QueryString["CompanyID"]%>","<% =Request.QueryString["orderid"]%>");' />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound">
        <Columns>
            <asp:BoundField DataField="date" HeaderText="时间" SortExpression="date" />
            <asp:BoundField DataField="DetailTypesId" HeaderText="类型" SortExpression="DetailTypesId" />
            <asp:BoundField DataField="Amount" HeaderText="金额" SortExpression="Amount" />
        </Columns>
    </asp:GridView>--%>
    <%--<asp:Button ID="Button1" runat="server" Text="保存" onclick="Button1_Click" />--%>
    <%--<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>--%>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id"
        CssClass="commongv">
        <Columns>
            <asp:BoundField DataField="TypeName" HeaderText="类型名称" ReadOnly="True" SortExpression="TypeName" />
            <asp:BoundField DataField="EnglishName" HeaderText="英文名" ReadOnly="True" SortExpression="EnglishName" />
            <asp:TemplateField HeaderText="金额">
                <ItemTemplate>
                    <asp:TextBox runat="server" ID="TextBox1" Text='<%# Eval("amount")%>'></asp:TextBox>
                    <div style="display: none;width: 0px"><asp:TextBox runat="server" ID="TextBox2" Text='<%# Eval("DetailTypesId")%>'></asp:TextBox></div>
                </ItemTemplate>
            </asp:TemplateField>
            

        </Columns>
    </asp:GridView>

</asp:Content>
